/* Snapshot Manager Styles - Podman Desktop inspired */

.snapshot-manager {
  background-color: var(--dark-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-top: 16px;
}

.snapshot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.snapshot-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--light-text);
}

/* Snapshots List */
.snapshots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snapshot-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  background-color: var(--current-line);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.snapshot-item:hover {
  border-color: var(--primary-color);
  background-color: rgba(189, 147, 249, 0.05);
}

.snapshot-info {
  flex: 1;
  min-width: 0;
}

.snapshot-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--light-text);
  margin-bottom: 4px;
}

.snapshot-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 4px;
}

.snapshot-date {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.snapshot-state {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  text-transform: capitalize;
}

.snapshot-state.disk-snapshot {
  background-color: rgba(139, 233, 253, 0.2);
  color: var(--cyan);
}

.snapshot-description {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 4px;
  line-height: 1.4;
}

.snapshot-actions {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

/* Current Badge */
.current-badge {
  background-color: var(--primary-color);
  color: var(--background);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Empty State */
.empty-state.compact {
  padding: 24px;
  text-align: center;
  color: var(--gray-text);
}

.empty-state.compact .empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.empty-state.compact p {
  margin: 0 0 12px 0;
  font-size: 14px;
}

/* Action Buttons */
.action-btn.small {
  padding: 4px 6px;
  font-size: 12px;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Small Modal */
.modal-content.small {
  max-width: 500px;
}

.modal-content.small .modal-body {
  padding: 16px;
}

.modal-content.small .form-group {
  margin-bottom: 12px;
}

.modal-content.small .form-input,
.modal-content.small .form-textarea.small {
  padding: 6px 8px;
  font-size: 13px;
}

.modal-content.small .modal-footer {
  padding: 12px 16px;
}

.modal-content.small .detail-grid.compact {
  grid-template-columns: 1fr;
  gap: 8px;
}

.modal-content.small .detail-item.full-width {
  grid-column: 1 / -1;
}

/* Loading State */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--gray-text);
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--current-line);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 8px;
}

/* Button Variants */
button.small {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
}

button.primary.small {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--background);
}

button.secondary.small {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--light-text);
}

button.danger.small {
  background-color: transparent;
  border-color: var(--danger-color);
  color: var(--danger-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .snapshot-item {
    flex-direction: column;
    gap: 8px;
  }

  .snapshot-actions {
    margin-left: 0;
    justify-content: flex-end;
  }

  .snapshot-meta {
    flex-direction: column;
    gap: 4px;
  }
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}